<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of model_User
 *
 * @author cs321ga3a
 */
class model_user extends CI_Model {

    function login($username ,$password){
        $this->db->where("user_login", $username);
        $this->db->where("user_password", $password);
        $query = $this->db->get("users");
        if ($query->num_rows() == 0){
            return null;
        }
        else{
            return $query->row();
        }
    }

    function getInfo() {
        
        $submitted = $this->input->post('submit');
        
        $username = $this->input->post('username');
        $extract(username);
        
        
        
    }
    
}
?>
